import { MailOutlined } from '@ant-design/icons-vue';
export const menuItems = [
  {
    key: '1',
    name: '企业管理',
    path: '/business',
    icon: MailOutlined,
    children: [{ key: 'sub1-1', name: '企业账号', path: '/business/account' }],
  },
  {
    key: '2',
    name: '产品管理',
    path: '/product',
    icon: MailOutlined,
    children: [
      { key: 'sub2-1', name: '产品类型', path: '/product/type' },
      { key: 'sub2-2', name: '产品功能', path: '/product/ability' },
      { key: 'sub2-3', name: '产品版本', path: '/product/version' },
    ],
  },
  {
    key: '3',
    name: '设置',
    path: '/settings',
    icon: MailOutlined,
    children: [
      { key: 'sub3-1', name: '用户管理', path: '/settings/user' },
      { key: 'sub3-2', name: '个人中心', path: '/settings/center' },
    ],
  },
];

export const getMenuIcon = (name) => {
  const item = menuItems?.find((item) => item.name === name);
  return item?.icon || MailOutlined;
};
